cmake_minimum_required(VERSION 3.13)
project(sfml-template)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib/static)

include_directories(${CMAKE_SOURCE_DIR}/include)

#set(SOURCES
#	${CMAKE_SOURCE_DIR}/src/main.cpp
#)

file(GLOB_RECURSE SOURCES ${CMAKE_SOURCE_DIR}/src/*.cpp)

find_package(OpenGL)

add_executable(sfml_template ${SOURCES})
target_link_libraries(sfml_template sfml-window sfml-graphics sfml-system OpenGL::GL) #SFML libs

